<?php

/**
 * @author      Nguyen Duc Thuan <me@ndthuan.com>
 * @copyright   Copyright (c) 2009 Nguyen Duc Thuan <me@ndthuan.com>
 * @version     $Id: ContactForm.php 12 2009-11-03 03:17:46Z thuan.nguyen $
 */

class ContactForm extends Fete_Form
{

    protected $_validators = array(
        'ct_name' => array('NotEmpty'),
        'ct_email' => array('NotEmpty'),
        'ct_content' => array('NotEmpty'),
        'ct_posttime' => array('NotEmpty'),
        'ct_fone' => array('NotEmpty'),
        'ct_status' => array('NotEmpty')
    );
    protected $_filters = array(
        'contactid' => array('Trim', 'Intval'),
        'ct_name' => array('Trim', 'GetLeft:100'),
        'ct_email' => array('Trim', 'GetLeft:12'),
        'ct_content' => array('Trim'),
        'ct_posttime' => array('Trim', 'Intval'),
        'ct_fone' => array('Trim', 'GetLeft:100'),
        'ct_status' => array('Trim', 'Intval'),
        'ct_reply' => array('Trim'),
        'ct_userreply' => array('Trim', 'GetLeft:50'),
        'ct_replytime' => array('Trim', 'Intval')
    );
}
